package com.example.springbootdemo.scene.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 *@author xuwangqi
 *@date 2021/5/24 15:58
 **/
/**
    * 景区攻略表，一个景区可能有多个攻略与景区表对应
    */
@ApiModel(value="com-example-springbootdemo-scene-entity-SceneStrategy")
@Data
@TableName(value = "scene_strategy")
public class SceneStrategy {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 景区id
     */
    @TableField(value = "scene_id")
    @ApiModelProperty(value="景区id")
    private String sceneId;

    /**
     * 景区名称
     */
    @TableField(value = "scene_name")
    @ApiModelProperty(value="景区名称")
    private String sceneName;

    /**
     * 景区攻略配图
     */
    @TableField(value = "img")
    @ApiModelProperty(value="景区攻略配图")
    private String img;

    /**
     * 景区攻略文章标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="景区攻略文章标题")
    private String title;

    /**
     * 景区攻略的文章
     */
    @TableField(value = "text")
    @ApiModelProperty(value="景区攻略的文章")
    private String text;

    /**
     * 文章来源
     */
    @TableField(value = "platform")
    @ApiModelProperty(value="文章来源")
    private String platform;

    /**
     * 文章的时间
     */
    @TableField(value = "gmt_time")
    @ApiModelProperty(value="文章的时间")
    private Date gmtTime;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDelete;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "upload_user_id")
    @ApiModelProperty(value="")
    private Integer uploadUserId;

    @TableField(value = "upload_user_name")
    @ApiModelProperty(value="")
    private String uploadUserName;

    /**
     * 状态，1正常 0审核中, 2审核失败
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态，1正常 0审核中, 2审核失败")
    private Byte status;

    public static final String COL_ID = "id";

    public static final String COL_SCENE_ID = "scene_id";

    public static final String COL_SCENE_NAME = "scene_name";

    public static final String COL_IMG = "img";

    public static final String COL_TITLE = "title";

    public static final String COL_TEXT = "text";

    public static final String COL_PLATFORM = "platform";

    public static final String COL_GMT_TIME = "gmt_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_UPLOAD_USER_ID = "upload_user_id";

    public static final String COL_UPLOAD_USER_NAME = "upload_user_name";

    public static final String COL_STATUS = "status";
}